{template 'common/header'}

<div class="panel panel-default">
 
    <div class="panel-body">
        <table st-table="items" class="table table-striped table-condensed" style="display:auto;">
            <thead>
            <tr>
			
                <th>昵称</th>
                <th>姓名</th>
                <th>电话</th>
                <th>部门</th>
                <th>子部门</th>
				<th>职位</th>
				<th>状态</th>
				<th>编辑</th>

            </tr>
            </thead>
            <tbody>
            {loop $list $list}
            <tr>
				<td>{$list['nickname']}</td>
				<td>{$list['name']}</td>
				<td >{$list['phone']}</td>
				<td >{$list['bumen']}</td>
				<td >{$list['jingwushi']}</td>
				<td >{$list['zhiwu']}</td>
				<td >
                    {if $list['static']==1}
                    <span class="label" style="background:#56af45;">已通过</span>
                    {else}
                    <span class="label" style="background:#747474;">未通过</span>
                    {/if}
                </td>

                <td>
                    {if $list['static']==0&&0}<a class="btn btn-default btn-sm" href="{php echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'yes'))}" title="编辑">审核通过</a>{/if}
                    <a class="btn btn-default btn-sm" href="{php echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'edit'))}" title="编辑"><i class="fa fa-pencil"></i></a>
                    <a class="btn btn-default btn-sm" onclick="return confirm('确认删除吗？');return false;" href="{php echo $this->createWebUrl('user', array('id' => $list['id'], 'op' => 'delete'))}" title="删除"><i class="fa fa-times"></i></a>
                </td>
            </tr>
            {/loop}
            </tbody>
        </table>
        {php echo $pager}
    </div>
    
</div>
{template 'common/footer'}